package com.briup.sxau.conf;

import com.briup.sxau.web.Interceptor.SxauInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 *自定义web配置类
 **/
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Autowired
    SxauInterceptor sxauInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        registry.addInterceptor(sxauInterceptor)
                .excludePathPatterns("/doc.html","/swagger-ui.html","/webjars/**","/v2/**","/user/login","favicon.ioc","/swagger-resources/**");

    }

}
